import moment from 'moment';

export default [{
  title: '来源',
  dataIndex: 'type',
  align: 'center',
  render: val => (val === 0 ? '种草' : val === 1 ? '每日分享' : val === 2 ? '收获' : '其它'),
}, {
  title: '数量',
  dataIndex: 'number',
  align: 'center',
  render: (text, record) => (record.type === 1 || record.type === 2) ? `+${text}` : text
}, {
  title: '剩余数量',
  dataIndex: 'amount',
  align: 'center',
}];